
/**
 * 门店出货详情
 */
const mongoose = require("mongoose")
const ObjectId = mongoose.Schema.Types.ObjectId;
const ShopSellSchema = new mongoose.Schema({
    goodsName: String, //商品名称
    shopSellkNum: Number, //门店销售数量
    goodsOrder:{
        type: ObjectId,
        ref:"GoodsOrder"
    }
}, {
        versionKey: false,
        timestamps: {
            createdAt: 'createTime',
            updatedAt: 'updateTime'
        } //自动管理修改时间
    })

module.exports = mongoose.model("ShopSell",ShopSellSchema);